<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="utf-8"%>
<%@ page language="java" import="java.util.*"%>
<%@ taglib prefix="s" uri="/struts-tags" %>
<%
String path = request.getContextPath();
String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/";
%>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<base href="<%=basePath%>"/>
<link rel="stylesheet" type="text/css" href="css/HomePage.css" />
<link rel="stylesheet" type="text/css" href="css/base_1.css" />
<link rel="stylesheet" type="text/css" href="css/files.css" />
<title>G-Search 教育信息搜索网站</title>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<script type="text/javascript" src="js/jquery-1.7.min.js"></script>
<script type="text/javascript" src="js/secloud.js"></script>
</head>

<body>

  <div id="u">

<dl class="top_u_dd">
	<s:if test="#session.username == null">
	<dd>
    <a id="menu" href="login.jsp" name="login">登入</a>
    </dd>
    <dt>|</dt>
    <dd>
    <a id="menu" href="user/registerPage.action" name="regist">注册</a>
    </dd>
   <dt>|</dt>
	 	<dd><a href="javascript:void(0);" onclick="to_advance_search()">高级搜索</a></dd>
	</s:if>
	<s:else>
	
	<s:bean var="user_auth" name="com.prp.struts.bean.UserAuth">
		<s:param name="username" value="#session.username"/>
	</s:bean>
	<dd>
	<label id = "menu"><s:property value="#session.username"/></label>
    	</dd>
    	<dt>|</dt>
    	<dd>
    	<a id = "menu" href="user/changePasswordPage.action" name="login">用户设置</a>
    	</dd>
    	<s:if test="#user_auth.is_UserAdmin">
 	  	<dt>|</dt>
 	  	<dd>
    	<a id = "menu" href="admin/userlist.action" name="regist">用户管理</a>
    	</dd>
    	</s:if>
    	
    	<s:if test="#user_auth.is_FileAdmin">
      	 	<dt>|</dt>
      	<dd>
		<a id="menu" href="file/file_list_admin.action" name="ad_search" >文件管理</a>
		</dd>
		</s:if>
		 	<dt>|</dt>
	 	<dd><a href="javascript:void(0);" onclick="to_advance_search()">高级搜索</a></dd>
         	<dt>|</dt>
		<dd>
		<a id = "menu" href="user/logout.action" name="ad_search" >退出</a> 
		</dd>
	</s:else>
	 	
	 	<dt>|</dt>
	<dd>
	
	<s:include value="/langselect.jsp"/>
	</dd>
	</dl>
 </div>	
  
 
  <p id="lm"></p>
  <div id="m">
  	<p id="lg"><img src="images/LogoMaker.jpg" width="270" height="130" /></p>
    <p id="lm"></p>
    
	<div id="fm">
    	<s:form namespace="/file" action="searchFile" method="get">
			<s:hidden name="pageSize" value="10"></s:hidden>
			<s:hidden name="pageNow" value="1"></s:hidden>
			<s:textfield name="searchInfo" id="kw" maxlength="100"/>
        	
            <span class="btn_wr">
      	      	<input type="submit" value="G搜一下" id="su" class="btn" onmousedown="this.className='btn btn_h'" onmouse="this.className='btn'"/>
            	
            </span>
            
        </s:form>
             </div>
   
    <div id="ad_search" style="display: none">
    	<s:include value="/advance_search.jsp"></s:include>
    	<div style="clear: both"></div>
    </div>
    
    <p id="lm"></p>
    <div style="width: 720px; opacity: 1; " id="s_mod_topsearch" class="mod-sc s-mod" data-modid="6" att_baidu_fx_move="TANGRAM__b">
        <div class="s-container"> 
        	<div class="s-title" id="s_mod_topsearch_titleBar" style=""> 
                <span class="s-topsearch-title">&nbsp;国家列表</span>
                
            </div>
            <s:action name="countryList" namespace="/file" executeResult="true"></s:action>
           
          </div>
    </div>
    <div>
    	<p id="cp">
    		©2011 G Search 
       	 	<a href="">使用前必读</a>
        	<a href="" target="_blank">京ICP证030173号</a>
    	</p>
    </div>
  </div>
 
</body>
</html>
